home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
A-COMAL Series
/
(k)aab.d64
/
pop.colors
< prev
next >
Wrap
Text File
|
2007-02-28
|
4KB
|
118 lines
0170 ╨╥╧├ POPOVER ├╠╧╙┼─
0180 //COPYRIGHT 1986 LEN LINDSAY
0190 // ORIGINAL BY LEN LINDSAY
0200 // REVISION BY
0210 ╔╬╘┼╥╥╒╨╘ //INTERRUPT OFF WHILE DOING INTERRUPT NOW
0220 ╒╙┼ GRAPHICS
0230 TEXTMODE:=INQ(13)
0240 GRAPHMODE:=INQ(7) //2=MULTI
0250 ╔╞ GRAPHMODE<2 ╘╚┼╬ GRAPHMODE:=1-INQ(14) //0=SPLIT//1=FULL HIRES
0260 ╘╥┴╨ ┼╙├-
0270 SETUP
0280 ╒╙┼ SYSTEM
0290 ─╔═ START'SCREEN$ ╧╞ 1505
0300 GETSCREEN(START'SCREEN$)
0310 ╔╞ ╬╧╘ TEXTMODE ╘╚┼╬ TEXTSCREEN
0320 CLEAR'KEYS
0330 POPUP
0340 SETSCREEN(START'SCREEN$)
0350 ╔╞ TEXTMODE ╘╚┼╬
0360 TEXTSCREEN
0370 ┼╠╙┼
0380 ╔╞ GRAPHMODE ╘╚┼╬
0390 FULLSCREEN
0400 ┼╠╙┼
0410 SPLITSCREEN
0420 ┼╬─╔╞
0430 ┼╬─╔╞
0440 CLEAR'KEYS // OPTIONAL LINE
0450 ╔╬╘┼╥╥╒╨╘ POPOVER
0460 //
0470 ╨╥╧├ POPUP
0480 COL:=╥╬─(3,15) // <<<===START COL
0490 CURRENT'ROW:=╥╬─(2,12) // <<<=== START ROW
0500 // ROW IS A FUNCTION THAT STARTS AT CURRENT'ROW
0510 // USE SHIFT * TO DRAW MENU LINE
0520 ╨╥╔╬╘ ┴╘ ROW,COL: ""18"░└└└└└└└└└└└└└└└«"
0530 ╨╥╔╬╘ ┴╘ ROW,COL: ""18" POPOVER MENU "
0540 ╨╥╔╬╘ ┴╘ ROW,COL: ""18"½└└└└└└└└└└└└└└└│"
0550 ╨╥╔╬╘ ┴╘ ROW,COL: ""18" C = COLORS "
0560 ╨╥╔╬╘ ┴╘ ROW,COL: ""18"½└└└└└└└└└└└└└└└│"
0570 ╨╥╔╬╘ ┴╘ ROW,COL: ""18" Q = QUIT "
0580 ╨╥╔╬╘ ┴╘ ROW,COL: ""18"½└└└└└└└└└└└└└└└│"
0590 ╨╥╔╬╘ ┴╘ ROW,COL: ""18" OR <RETURN> KEY "
0600 ╨╥╔╬╘ ┴╘ ROW,COL: ""18"¡└└└└└└└└└└└└└└└╜"
0610 ╥┼╨┼┴╘
0620 DONE'POPPING:=╘╥╒┼
0630 ├┴╙┼ ╦┼┘$ ╧╞
0640 ╫╚┼╬ "C","├"
0650 SET'COLORS
0660 START'SCREEN$(1):=├╚╥$(INQ(1))
0670 START'SCREEN$(2):=├╚╥$(INQ(2))
0680 START'SCREEN$(3):=├╚╥$(INQ(3))
0690 ╫╚┼╬ "Q","╤"
0700 ╘╥┴╨ ┼╙├+
0710 ┼╬─ ""147"╘HANK ┘OU."
0720 ╫╚┼╬ ""13"" //CARRIAGE RETURN
0730 ╥┼╘╒╥╬
0740 ╧╘╚┼╥╫╔╙┼
0750 DONE'POPPING:=╞┴╠╙┼
0760 ┼╬─├┴╙┼
0770 ╒╬╘╔╠ DONE'POPPING
0780 ┼╬─╨╥╧├ POPUP
0790 //
0800 ╨╥╧├ READY
0810 ╔╬╨╒╘ ┴╘ 25,1,0: ""18"╨RESS ╥┼╘╒╥╬ WHEN READY": POPREADY$
0820 ╨┴╟┼
0830 ┼╬─╨╥╧├ READY
0840 //
0850 ╞╒╬├ ROW
0860 CURRENT'ROW:+1
0870 ╥┼╘╒╥╬ CURRENT'ROW
0880 ┼╬─╞╒╬├ ROW
0890 //
0900 ╨╥╧├ CLEAR'KEYS
0910 ╫╚╔╠┼ ╦┼┘$>"" ─╧ ╬╒╠╠
0920 DUMMYESC:=┼╙├ //CLEAR STOP KEY
0930 ┼╬─╨╥╧├ CLEAR'KEYS
0940 //
0950 ╨╥╧├ SETUP ├╠╧╙┼─
0960 // SETUP BY JESSE KNIGHT
0970 ╘╥┴╨ ┼╙├-
0980 ╞╧╥ X#:=0 ╘╧ 12 ─╧
0990 ╥┼┴─ BYTE#
1000 ╨╧╦┼ $C86A+X#,BYTE#
1010 ┼╬─╞╧╥ X#
1020 ╨╧╦┼ $C7E2,$6A
1030 ╨╧╦┼ $C7E3,$C8
1040 ╨╧╦┼ $4D,╨┼┼╦($4D) ┬╔╘╧╥ $20
1050 ─┴╘┴ $A5,$4D,$29,$08,$F0,$06,$A9
1060 ─┴╘┴ $04,$05,$4D,$85,$4D,$60
1070 ┼╬─╨╥╧├ SETUP
1080 //
1090 ╨╥╧├ SET'COLORS ├╠╧╙┼─
1100 ╒╙┼ SYSTEM
1110 ╒╙┼ GRAPHICS
1120 ╨┴╟┼
1130 ╠╧╧╨
1140 ╨╥╔╬╘ ┴╘ 3,1: ""18"SET COLORS NOW"
1150 ╨╥╔╬╘ ┴╘ 6,1: "PRESS "18" F1 "146" BORDER COLOR"
1160 ╨╥╔╬╘ ┴╘ 8,1: "PRESS "18" F3 "146" BACKGROUND COLOR"
1170 ╨╥╔╬╘ ┴╘ 10,1: "PRESS "18" F5 "146" TEXT COLOR"
1180 ╨╥╔╬╘ ┴╘ 13,1: "PRESS "18" F7 "146" OR "18" Q "146" QUIT COLORS"
1190 ├┴╙┼ ╦┼┘$ ╧╞
1200 ╫╚┼╬ ""133""
1210 TEXTCOLORS((INQ(1)+1) ═╧─ 16,-1,-1)
1220 ╫╚┼╬ ""134""
1230 TEXTCOLORS(-1,(INQ(2)+1) ═╧─ 16,-1)
1240 ╫╚┼╬ ""135""
1250 TEXTCOLORS(-1,-1,(INQ(3)+1) ═╧─ 16)
1260 ╫╚┼╬ ""136"","Q","╤"
1270 ┼╪╔╘
1280 ╧╘╚┼╥╫╔╙┼
1290 ┼╬─├┴╙┼
1300 ┼╬─╠╧╧╨
1310 ┼╬─╨╥╧├ SET'COLORS
1320 //
1330 ┼╬─╨╥╧├ POPOVER